<?php

namespace StudyBuddy;

class SubmittedTutorWWW extends SubmittedTutor {

    protected $oForm;

    public function __construct(\StudyBuddy\Forms\Tutor $oForm) {
        $this->oForm = $oForm;
    }

    public function getTmpRole() {
        return $this->oForm->getSubmittedValue('tmp_role');
    }

    public function getFullName() {
        return $this->oForm->getSubmittedValue('fullname');
    }

    public function getMobile() {
        return $this->oForm->getSubmittedValue('mobile');
    }

    public function getPackage() {
        return $this->oForm->getSubmittedValue('package');
    }

    public function getExperience() {
        return $this->oForm->getSubmittedValue('experience');
    }

    public function getNIECert() {
        return $this->oForm->getSubmittedValue('niecert');
    }

    public function getQualification() {
        return $this->oForm->getSubmittedValue('qualification');
    }

    public function getTeach() {
        return $this->oForm->getSubmittedTeach();
    }

//
//	public function getFirstName(){
//		return $this->oForm->getSubmittedValue('fn');
//	}
//
//	public function getLastName(){
//		return $this->oForm->getSubmittedValue('ln');
//	}
//
//	public function getMiddleName(){
//		return $this->oForm->getSubmittedValue('mn');
//	}
//
//	public function getState(){
//		return $this->oForm->getSubmittedValue('state');
//	}
//
//	public function getCity(){
//		return $this->oForm->getSubmittedValue('city');
//	}
//
//	public function getZip(){
//		return $this->oForm->getSubmittedValue('zip');
//	}
//
//	public function getUrl(){
//		return $this->oForm->getSubmittedValue('url');
//	}

    public function getDescription() {
        return $this->oForm->getSubmittedValue('description');
    }

    public function getUploadedAvatar() {
        if (!$this->oForm->hasUploads()) {
            return null;
        }

        return $this->oForm->getUploadedFile('profile_image');
    }

}
